using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FarseerPhysics.Dynamics;
using Microsoft.Xna.Framework;
using HappyFrogXna.Level;
using HappyFrogXna.DrawingSystem;
using HappyFrogXna.ScreenSystem;
using Microsoft.Xna.Framework.Graphics;
using FarseerPhysics.Factories;
using HappyFrogXna.ParticleSystem;
using HappyFrogXna.Miscellaneous;

namespace HappyFrogXna.Roles
{
    class Frog1 : CircleEntity, IFrog
    {
        public Frog1(World w)
            : this(w, new Vector2(0, 0))
        { }

        public Frog1(World w, Vector2 pos)
            : base(w, pos)
        {
            EntitySprite = new Sprite(GolbalXnaGadgetProvider.Instance.Content.Load<Texture2D>(@"Images\Frog"));
            float radius = ConvertUnits.ToSimUnits(EntitySprite.Height / 2);

            EntityBody = BodyFactory.CreateEllipse(_world, radius, radius, 8, 1f, pos);
            EntityBody.BodyType = BodyType.Dynamic;
            EntityBody.Rotation = 0.0f;
            EntityBody.Mass = 1.5f;
            EntityBody.Restitution = 0.4f;
            EntityBody.Friction = 0.6f;

            UserDate = new EntityUserData();
            UserDate.Name = "Frog1";
            UserDate.Type = EntityType.Frog;
        }
    }
}
